package com.jzm.dao;


import com.alibaba.fastjson2.JSON;
import com.jzm.annotation.Transational;
import com.jzm.dto.UserQueryDTO;
import com.jzm.entity.User;

import java.sql.Statement;
import java.util.List;

public class UserDAO extends BaseDAO{


    @Transational
    public User createUser(User user) {
        try{
            Statement statement = getStatement();
            //操作数据库
        }catch (Exception e){

        }



        System.out.println(JSON.toJSONString(user));
        return user;
    }


    public User updateUser(User user) {
        return null;
    }


    public List<User> selectUserInfo(UserQueryDTO userQueryDTO) {
        return List.of();
    }
}
